const option = {
  title: {
    text: '风险巡查情况'
  },
  tooltip: {
    trigger: 'axis'
  },
  legend: {
    data: ['一般隐患', '重大隐患']
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
  },
  yAxis: [
    {
      type: 'value',
      name: '销量（支）',
      splitLine: {
        show: false
      },
      nameLocation: 'middle',
      nameGap: 70
    },
    {
      type: 'value',
      name: '营业额（万元）',
      splitLine: {
        show: false
      },
      nameLocation: 'middle',
      nameGap: 50
    }

  ],
  // yAxis: {
  //   type: 'value'
  // },
  series: [
    {
      name: '一般隐患',
      type: 'line',
      stack: 'Total',
      data: [120, 132, 101, 134, 90, 230, 210, 90, 230, 210, 0, 1]
    },
    {
      name: '重大隐患',
      type: 'line',
      stack: 'Total',
      data: [220, 182, 191, 234, 290, 330, 310, 132, 101, 134, 90, 230,]
    },

  ]
};

export default option